<div class="full-height full-width" fwa-layout-container data-main="true"  >
	<div fwa-layout-box="north"  style="height: 40px;">
		<div search-form class="container-search" data-submit="onSubmit();"
		     data-reset="onReset();" data-heights="[40,80]"  >
			<div class="row form-group">
				<div class="col-xs-4">
					<label class="col-xs-4 control-label text-right">
						机构名称:
					</label>
					<div class="col-xs-8">
						<select-container container-data="communityService.medicalOrgInfoDatas" text="medicalOrgName" 
						    code="medicalOrgCode" result="form.orgName" 
						    data-type="true"  search-datas="['medicalOrgName','namePysr','nameWubi']" >
						</select-container>
					</div>
				</div>
				<div class="col-xs-4">
					<label class="col-xs-4 control-label text-right">
						<span class="red">* </span>
						考评年度:
					</label>
					<div class="col-xs-8">
					    <input class="form-control" fwa-datetime data-type="decade" data-format="yyyy" ng-model="form.evaluationYear">
					</div>
				</div>
				<div class="col-xs-4">
					<label class="col-xs-4 control-label text-right">
						床位情况:
					</label>
					<div class="col-xs-8">
						<aritificial-select container-data="containerDatas" data-show-name="name" data-result-name="code" data-result="form.bedName">
						</aritificial-select>
					</div>
				</div>
			</div>
			<div ng-hide="searchMoreHide">
				<div class="row form-group" >
					<div class="col-xs-4">
						<label class="col-xs-4 control-label text-right">
							考评得分:
						</label>
						<div class="col-xs-8">
							<aritificial-select container-data="evaluationScroes" data-show-name="name" data-result-name="code" data-result="form.evaluationScroe">
							</aritificial-select>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div fwa-layout-box="center" data-padding="true">
		<div class="full-width full-height background-white full-overflow-y">
			<table class="table fwa-table table-bordered table-striped ">
	            <thead>
	            <tr>
	             	<th rowspan="2" width="4%" style="vertical-align: middle;">
						<input type="checkbox" ng-model="checked" ng-change="selectAll(checked);"  >
	                </th>
	                <th rowspan="2" width="8%" style="vertical-align: middle;">
						考评年度
	                </th>
	                <th rowspan="2" width="15%" style="vertical-align: middle;">
						机构名称
	                </th>
	                <th rowspan="2" width="10%" style="vertical-align: middle;">
						机构级别
	                </th>
	                <th rowspan="2" width="8%" style="vertical-align: middle;">
	            	 	床位情况
	                </th>
	                <th colspan="{{columns.length}}" class="text-center" width="40%" >
	              		考评得分
	                </th>
	                <th rowspan="2" width="7%" style="vertical-align: middle;">
	                	状态
	                </th>
	                <th rowspan="2" width="7%" style="vertical-align: middle;">
	              	 	操作
	                </th>
	            </tr>
	             <tr>
	             	<th ng-repeat="column in columns" width="{{column.width}}">
	                   	<span ng-bind="column.label">
	                   	</span>
	                </th>
	            </tr>
	            </thead>
	            <tbody >
	            	<tr  ng-repeat="data in tableData">
	            		<td>
		            		<input type="checkbox" ng-model="data.checked" ng-change="selectData(data);" >
		            	</td>
		            	<td>
		            		<span ng-bind="data.evaluationYear">
		            		</span>
		            	</td>
		            	<td title="{{data.orgName}}">
		            		<div>
			            		<span ng-bind="data.orgName">
			            		</span>
		            		</div>
		            	</td>
		            	<td title="{{data.orgLevelName}}">
			            	<div>
				            	<span ng-bind="data.orgLevelName">
			            		</span>
			            	</div>
		            	</td>
		            	<td>
		            		<span ng-bind="data.bedName">
		            		</span>
		            	</td>
		            	<td ng-repeat="column in columns">
			            	<span ng-bind="data[column.map]">
			            	</span>
		            	</td>
		            	<td>
		            		<span ng-bind="data.statusName">
		            		</span>
		            	</td>
		            	<td>
			               <a ng-show="data.status == '3' || data.status == '4'" ng-click="operation(data);">审核</a>
			               <a ng-show="data.status == '5'" ng-click="operation(data);" >撤回</a>
			               <a ng-show="data.status != '3' && data.status != '4' && data.status != '5'" ng-click="operation(data);" >查看</a>
		            	</td>
	            	</tr>
	            </tbody>
            </table>
		</div>
		
	</div>
	<div fwa-layout-box="south" data-padding="true" style="height: 36px;">
		<div class="col-xs-11">
			<div class="row">
				<page-tool total-count="totalCount"  current-page="current.currentPage"
				           data-limit="current.limit">
				</page-tool>
			</div>
		</div>
		<div class="col-xs-1" style="line-height: 28px;">
			<div class="row">
				<button type="button" class="btn btn-blue btn-xs" ng-click="batchSumit();">
					批量提交
				</button>
			</div>
		</div>
	</div>
</div>
<script type="text/ng-template" id="batchSubmit.html">
<div class="modal-header">
	<button type="button" class="close"  ng-click="onClose();">&times;</button>
	<h5 class="modal-title">
		<span >批量提交审核意见</span>
	</h5>
</div>
<div class="modal-body">
	<div class="row">
		<label class="col-xs-3 control-label text-right">
			审核意见:
		</label>
		<div class="col-xs-5">
		      <select class="form-control" ng-model="form.auditOpinion"
		                 ng-options="c.code as c.name for c in checkList">
		             <option value="">---请选择---</option>
		      </select>
		      </div>
		<div class="col-xs-4">
		</div>
	</div>
	<div class="row">
		<label class="col-xs-3 control-label text-right">
			意见描述:
		</label>
		<div class="col-xs-7">
			<textarea class="form-control" ng-model="form.auditDesc" style="height:100px;background-color:white; cursor: pointer;" maxlength="330">
			</textarea>
		</div>
		<div class="col-xs-2">
		</div>	
    </div>
</div>
<div class="modal-footer">
	<div class="col-xs-12 text-center" >
		<button type="button" class="btn btn-primary btn-sm" ng-click="batchConfirm();">
			提交
		</button>
		<button type="button" class="btn btn-primary btn-sm" ng-click="onClose();" >
			取消
		</button>
	</div>
</div>
</script>
<fwa-loading data-show="loading">
	加载中...
</fwa-loading>
